package com.dgut.admodule.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.dgut.admodule.entity.Ad;

public interface IAdService {
	public void saveOrUpdate(Ad ad);
	public void delete(Ad ad);
	public void delete(List<Long> ids);
	public Ad findOne(Long id);
	public Ad findNew();
	public List<Ad> findAll();
	public Page<Ad> findAll(Specification<Ad> spec,Pageable pageable);
}
